package test;

import java.util.Scanner;

import de.fhhof.robot.control.IMessage;
import de.fhhof.robot.control.Message;
import de.fhhof.robot.control.net.Connection;
import de.fhhof.robot.control.net.IConnection;



public class JsapToControlTest2 {

	public static void main(String args[]){
		
		try{
			System.out.println(" Insufficient Smarties test.");
			IMessage msgA = new Message("K000","rrr--------------------------------------------------------yy--");
		
			IConnection server = new  Connection(8000,"JS","ST");
			server.send(msgA);

			IMessage msg1 =server.receive();
			IMessage msg2 = server.receive();
			System.out.println("cmd: "+msg1.getCommand() + " payload: " + msg1.getPayload());
			System.out.println("cmd: "+msg2.getCommand() + " payload: " + msg2.getPayload());



			

			
		}
		catch(Exception ex){
			ex.printStackTrace();
		}
	}
}
